const isSel = document.getElementsByClassName("showSel");
function mouseOver() {
    isSel[0].setAttribute("style", "display:block");
}
function mouseLeave() {
    isSel[0].setAttribute("style", "display:none");
}
function pMove() {
    const selId = document.getElementById("selId").getElementsByTagName("p");
    for (let index = 0; index < selId.length; index++) {
        let element = selId[index];
        if (element.innerText == "选择1") {
            element.addEventListener("mouseover", (e) => {
                e.target.setAttribute("style", "color:red");
            });
            element.addEventListener("mouseleave", (e) => {
                e.target.setAttribute("style", "color:white");
            });
        } else if (element.innerText == "选择2") {
            element.addEventListener("mouseover", (e) => {
                e.target.setAttribute("style", "color:red");
            });
            element.addEventListener("mouseleave", (e) => {
                e.target.setAttribute("style", "color:white");
            });
        }
    }
    
}

